import request from "@/utils/request";

// 查询VR列表
export function listVr(query) {
  return request({
    url: "/map/vr/list",
    method: "get",
    params: query,
  });
}

// 查询VR详细
export function getVr(vrId) {
  return request({
    url: "/map/vr/" + vrId,
    method: "get",
  });
}

// 新增VR
export function addVr(data) {
  return request({
    url: "/map/vr",
    method: "post",
    data: data,
  });
}

// 修改VR
export function updateVr(data) {
  return request({
    url: "/map/vr",
    method: "put",
    data: data,
  });
}

// 删除VR
export function delVr(query) {
  return request({
    url: "/map/vr/" + query,
    method: "delete",
    // params: query,
  });
}

// 节点id查询VR
export function getNodeVrInfo(query) {
  return request({
    url: "/map/vr/node",
    method: "get",
    params: query,
  });
}
